package com.linln.wtp.validator;


import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

@Data
public class WxYearauditOrderValid {


    //服务 0 自行 1 上门
    @NotEmpty(message = "服务选择不能为空")
    private String service;


    //消费的店铺
    @NotEmpty(message = "消费店铺不能为空")
    private String shopId;

    //车牌
    @NotEmpty(message = "车牌不能为空")
    private String plate;

    //联系人
    @NotEmpty(message = "联系人不能为空")
    private String contacts;

    //手机
    @Pattern(regexp = "^1(3[0-9]|4[5,7]|5[0,1,2,3,5,6,7,8,9]|6[2,5,6,7]|7[0,1,7,8]|8[0-9]|9[1,8,9])\\d{8}$", message = "手机号码格式不正确")
    private String phone;

    @NotEmpty(message = "购买参数错误")
    private String isBuy;
}
